package com.wut.logger.common;

import com.alibaba.fastjson.annotation.JSONType;
import lombok.Data;

@Data
@JSONType(orders = {"cost", "className", "method", "request", "response", "bodyLength", "exception"})
public class LoggerContext {

    /**
     * 类名
     */
    private String className;
    /**
     * 方法名
     */
    private String method;
    /**
     * 入参
     */
    private Object request;
    /**
     * 出参
     */
    private Object response;
    /**
     * 耗时
     */
    private Long cost;
    /**
     * 异常
     */
    private String exception;
    /**
     * 响应字节长度
     */
    private Integer bodyLength;
    /**
     * 本次请求URL，不是栈源头url
     */
    private String url;
}
